<!DOCTYPE html>
<html lang="en">
  <head><meta name="generator" content="Hexo 3.9.0">
    <meta charset="utf-8">

    <title>easy java document | easy-java </title>
    <meta name="description" content>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    

    <!-- fonts -->
    <link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700" rel="stylesheet">
    <link href="//fonts.googleapis.com/css?family=Ubuntu:300,400,500,600,700" rel="stylesheet">

    <!-- stylesheets -->
    <link rel="stylesheet" href="/ejdoc/style/doc.css">

    <!-- favicon -->
    <link rel="icon" href="/ejdoc/images/favicon.ico">

    

  </head>
  <body>

   <script>window.__INITIAL_STATE__ = {"page":{"title":"easy-java","path":"install.html"},"data":{"navigation":{"logo":{"text":"Easy Java","type":"link","path":"index.html"},"main":[{"text":"工作流与业务流集合","type":"link","path":"wf3.html"},{"text":"一对多关联V2.0","type":"link","path":"o2m.html"}]},"navigation.yaml":"{\n  \"logo\": {\n    \"text\": \"Easy Java\",\n    \"type\": \"link\",\n    \"path\": \"index.html\"\n  },\n  \"main\": [\n    {\n        \"text\": \"如何让你的项目快人N步?\",\n        \"type\": \"link\",\n        \"path\": \"index.html\"\n    },\n    {\n        \"text\": \"起步（从无到有）\",\n        \"type\": \"link\",\n        \"path\": \"build-code.html\"\n    },\n    {\n        \"text\": \"项目演示地址\",\n        \"type\": \"link\",\n        \"path\": \"show.html\"\n    },\n    {\n        \"text\": \"安装\",\n        \"type\": \"link\",\n        \"path\": \"install.html\"\n    },\n    {\n        \"text\": \"功能介绍\",\n        \"type\": \"link\",\n        \"path\": \"function1.html\"\n    },\n    {\n        \"text\": \"动态工作流-内置表单\",\n        \"type\": \"link\",\n        \"path\": \"workflow1.html\"\n    },\n    {\n        \"text\": \"动态工作流-外置表单\",\n        \"type\": \"link\",\n        \"path\": \"workflow2.html\"\n    },\n    {\n        \"text\": \"分布式定时任务\",\n        \"type\": \"link\",\n        \"path\": \"timer.html\"\n    },\n    {\n        \"text\": \"升级日志\",\n        \"type\": \"link\",\n        \"path\": \"log-20200517.html\"\n    },\n    {\n        \"text\": \"计划\",\n        \"type\": \"link\",\n        \"path\": \"future.html\"\n    },\n    {\n        \"text\": \"有Bug及时发我完善\",\n        \"type\": \"label\"\n    }\n  ]\n}\n"},"config":{"timezone":"UTC","root":"/ejdoc/","time_format":"HH:mm:ss","theme":"../node_modules/hexo-theme-doc","theme_config":{"swagger_ui":{"version":2,"permalinks":true,"api_explorer":true,"download":"Download specification","show_extensions":false,"deep_linking":true,"display_operation_id":false,"doc_expansion":"none"},"search":{"skip":false,"background":false,"route":"/lunr.json"},"favicon":"images/favicon.ico"}}}</script>

    <div id="react-navigation-root"><div class="doc-navigation" data-reactroot><nav class="doc-navbar"><a href="/ejdoc/index.html" class="doc-navbar__logo"><img src="/ejdoc/images/logo.png" class="doc-navbar__logo__img"><span class="doc-navbar__logo__text">Easy Java</span></a><i class="dc-icon dc-icon--close dc-icon--interactive doc-sidebar-close doc-navbar__sidebar-close doc-navbar__sidebar-close--desktop"></i><i class="dc-icon dc-icon--menu dc-icon--interactive doc-sidebar-toggle doc-navbar__sidebar-toggle"></i></nav><nav class="doc-sidebar"><div class="doc-sidebar__vertical-menu"><i class="dc-icon dc-icon--menu dc-icon--interactive doc-sidebar-toggle doc-sidebar-toggle--primary doc-sidebar__vertical-menu__item"></i><i class="dc-icon dc-icon--search dc-icon--interactive doc-sidebar__vertical-menu__item doc-sidebar__vertical-menu__item--primary"></i></div><div class="doc-sidebar-content"><div class="doc-sidebar__search-form"></div><ul class="doc-sidebar-list"></ul></div></nav></div></div>
    <div class="doc-content">
  <div class="dc-page">
    <div class="dc-card">
      <div id="react-search-results-root"></div>
      <div id="page-content" class="doc-formatting">
        <h2 id="Git地址"><a href="#Git地址" class="headerlink" title="Git地址"></a>Git地址</h2><p><strong>拉代码、创建数据库前，先看最下面的注意事项，不看后悔</strong></p>
<p><strong>前端项目：</strong><br><a href="https://gitee.com/yongteam/vue-ej.git" target="_blank" rel="noopener">前端项目git地址</a><br>前端项目跑起来后，可连接内网后端服务，直接运行前端项目，连接内网后端服务方法。<br>修改/src/utils/request.js, baseURL地址信息，如下：<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">// create an axios instance</span><br><span class="line">const service = axios.create(&#123;</span><br><span class="line">  // process.env.VUE_APP_BASE_API, // url = base url + request url, base url is 、dev-api now</span><br><span class="line">  // baseURL: <span class="string">'http://localhost:9900'</span>,</span><br><span class="line">  baseURL: <span class="string">'http://192.168.2.150:9900'</span>, // 后端服务地址</span><br><span class="line">  // withCredentials: <span class="literal">true</span>, // send cookies when cross-domain requests</span><br><span class="line">  timeout: 10 * 1000 // request timeout</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure></p>
<p>前端Vue参考vue-element-admin设计，可参考<a href="https://panjiachen.gitee.io/vue-element-admin-site/zh/" target="_blank" rel="noopener">vue-element-admin</a>学习。</p>
<p><strong>后端项目：</strong><br><a href="https://gitee.com/yongteam/easyjava.git" target="_blank" rel="noopener">后端项目git地址</a></p>
<pre><code>微服务架构
基于SpringCloud微服务架构, 微服务有：
1，服务治理：eureka
2，配置服务：config
3，网关：gateway
4，Oauth2认证服务器：auth
5，模板核心服务1：core
6，模板核心服务2：base (生成的源码在这里)
**项目启动顺序也按上面序列来启动。**
</code></pre><p><strong>数据库文件：</strong><br>2020.06.01发布的最新全面数据库sql:<br><a href="db/easyjava-20200601.sql">easyjava-20200601.sql</a></p>
<h2 id="Swagger接口测试"><a href="#Swagger接口测试" class="headerlink" title="Swagger接口测试"></a>Swagger接口测试</h2><pre><code>系统集成了API接口测试系统Swagger；
Swagger认证只需输入用户名和密码：admin123, abc123456；
测试地址：
http://127.0.0.1:9900/swagger-ui.html
</code></pre><h2 id="运行环境"><a href="#运行环境" class="headerlink" title="运行环境"></a>运行环境</h2><p><strong>JDK</strong><br>Jdk 1.8, Jdk 11 都行<br><strong>操作系统</strong><br>Windows, Mas 都行<br><strong>数据库</strong><br>数据库只认Mariadb；Mysql，99%把握，应该也行，没时间试<br>我用的是：<a href="https://downloads.mariadb.org/mariadb/10.4.12/" target="_blank" rel="noopener">Mariadb 10.4</a></p>
<h2 id="注意事项"><a href="#注意事项" class="headerlink" title="注意事项"></a>注意事项</h2><p>以下这些，最好和我的保持一致，这样以后拉新代码，不用修改。<br>数据库名称、用户名、密码等信息如下：<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">druid.username=root1</span><br><span class="line">druid.url=jdbc:mysql://127.0.0.1:3306/easyjava</span><br><span class="line">druid.driver=com.mysql.cj.jdbc.Driver</span><br><span class="line">druid.password.plain=laoliou</span><br></pre></td></tr></table></figure></p>
<p>项目目录：<br>系统生成源码的目录配置文件：/easyjava/core/resources/config.properties<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># Mac</span></span><br><span class="line"><span class="comment"># mybatis-plus.generator.path= /Users/wxy/workspace/gitee/easyjava</span></span><br><span class="line"><span class="comment"># mybatis-plus.generator.vue.path= /Users/wxy/workspace/gitee/vue-ej/src</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># Windows</span></span><br><span class="line">mybatis-plus.generator.path= D:\\workspace2019\\gitee\\easyjava</span><br><span class="line">mybatis-plus.generator.vue.path= D:\\workspace2019\\gitee\\vue-ej\\src</span><br><span class="line"></span><br><span class="line">mybatis-plus.generator.module= base</span><br></pre></td></tr></table></figure></p>
<p>最好把项目clone在以下位置，和我保持一致，不然就得修改上面的config文件，指向自己的项目目录。</p>
<pre><code>Mac：
前端：/Users/wxy/workspace/gitee/vue-ej
后端：/Users/wxy/workspace/gitee/easyjava
Windows：
前端：D:\\workspace2019\\gitee\\vue-ej
后端：D:\\workspace2019\\gitee\\easyjava
</code></pre>
        <div id="react-support-footer-root"></div>
      </div>
    </div>
  </div>
</div>

    


    

    <!-- js vendors -->
    <script src="//code.jquery.com/jquery-3.2.1.min.js" crossorigin="anonymous"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/lunr.js/2.1.0/lunr.min.js"></script>

    <!-- js source  -->
    <script src="/ejdoc/script/doc.js"></script>

    

  </body>
</html>
